import request from '@/utils/request'

export function getJueseList(_limit, _start) {
  return request({
    url: '/roles',
    params: {
      _limit,
      _start
    }
  })
}
export function addJuese(data) {
  return request({
    url: '/roles',
    method: 'post',
    data
  })
}
export function getJueseById(id) {
  return request({
    url: '/roles/' + id
  })
}
export function delJueseById(id) {
  return request({
    url: '/roles/' + id,
    method: 'delete'
  })
}
export function editJuese(data) {
  return request({
    url: '/roles/' + data.id,
    method: 'put',
    data
  })
}
export function getJueseCount() {
  return request({
    url: '/roles/count'
  })
}
